package com.chw.mapp;

import com.chw.model.Area;
import com.chw.model.Commerce;
import com.chw.model.vo.UserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface CommerceMapp {
    void addUser(Commerce commerce);
   @Select("select * from t_user where name=#{name} ")
    Commerce queryName(String name);
    @Select("SELECT * from t_area")
    List<Area> area();

    Long count(UserVo userVo);

    List<Commerce> queryUser(UserVo userVo);
    @Select("select *from t_user where id=#{id}")
    Commerce queryUserById(Integer id);

    void updateUser(Commerce commerce);

    void deleteUser(Integer[] id);

   void updatePass(@Param("name")String name, @Param("upPas")String upPas);

    void updateXinXi(Commerce commerce);

    void updateGeRXinXi(Commerce commerce);
}
